import requset from "../utils/request"

// 新增政策文件
 export const addGangPolicyAPI = (data: any) => {
  return requset('gang/policy/add', 'POST', data)
}
// 查询政策文件列表
 export const getGangPolicyListAPI = (data: any) => {
  return requset('gang/policy/list', 'GET', data)
}
// 编辑政策文件
export const updateGangPolicyAPI = (data: any) => {
  return requset('gang/policy/update', 'POST', data)
}
// 修改政策文件发布状态
export const updateGangPolicyStatusAPI = (data: any) => {
  return requset('gang/policy/updateStatus', 'POST', data)
}
// 删除政策文件
export const deleteGangPolicyAPI = (data: any) => {
  return requset(`gang/policy/delete/${data.id}`, 'GET', data)
}
// 新增事项清单
export const addGangItemAPI = (data: any) => {
  return requset('gang/item/add', 'POST', data)
}
// 查询事项清单列表
export const getGangItemListAPI = (data: any) => {
  return requset('gang/item/list', 'GET', data)
}
// 编辑事项清单
export const updateGangItemAPI = (data: any) => {
  return requset('gang/item/update', 'POST', data)
}
// 修改事项清单发布状态
export const updateGangItemStatusAPI = (data: any) => {
  return requset('gang/item/updateStatus', 'POST', data)
}
// 删除事项清单
export const deleteGangItemAPI = (data: any) => {
  return requset(`gang/item/delete/${data.id}`, 'GET', data)
}
// 新增工作动态
export const addGangWorkAPI = (data: any) => {
  return requset('gang/work/add', 'POST', data)
}
// 查询工作动态列表
export const getGangWorkListAPI = (data: any) => {
  return requset('gang/work/list', 'GET', data)
}
// 编辑工作动态
export const updateGangWorkAPI = (data: any) => {
  return requset('gang/work/update', 'POST', data)
}
// 修改工作动态发布状态
export const updateGangWorkStatusAPI = (data: any) => {
  return requset('gang/work/updateStatus', 'POST', data)
}
// 删除工作动态
export const deleteWokrItemAPI = (data: any) => {
  return requset(`gang/work/delete/${data.id}`, 'GET', data)
}